package com.cn.xiaonuo.slbfinances.slbmarket.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Mapper
public interface SlbMaketMapper extends BaseMapper<String> {
    //查询：订单购买者上级提成--列表
    public List<Map<String,Object>> buySuperiorPaymentList(
            @Param("buySuperiorId") String buySuperiorId,
            @Param("buySuperiorName") String buySuperiorName,
            @Param("buySuperiorPhone") String buySuperiorPhone,
            @Param("paymentState") String paymentState,
            @Param("confirmBeginTime") String confirmBeginTime,
            @Param("confirmEndTime") String confirmEndTime,
            @Param("orderId") String orderId,
            @Param("buyUserId") String buyUserId,
            @Param("royaltyCondition") String royaltyCondition
    );

    //订单购买者上级提成--财务结款--批量操作
    public int buySuperiorPaymentAll(
            @Param("recordUserId")  Integer recordUserId,
            @Param("paymentIdList")  String[] paymentIdList
    );
}